<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 
<!DOCTYPE html>
 
<html>
 <link href="static/jumpcss/myjumpcss.css" rel="stylesheet">
  <link href="static/Hplus-v.4.1.0/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="static/Hplus-v.4.1.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="static/Hplus-v.4.1.0/css/animate.css" rel="stylesheet">
    <link href="static/Hplus-v.4.1.0/css/style.css?v=4.1.0" rel="stylesheet">
<head>
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
<meta charset="UTF-8">
 
<title>输入秘钥</title>
 <!-- <script type="text/javascript">
        function jump() {
          clearInterval(mytime);
          window.open("${basePath}CommAction?p=WEB-INF/login",target="_self");
        }
       a=setTimeout("jump()",5000);
        function changeSec() {
           //得到myspan值
           $('myspan').innerText=$('myspan').innerText-1;
        }
         function $(id) {
        return document.getElementById(id);
      }
        var mytime = setInterval("changeSec()",1000);
	//点击后取消读秒
	$('.J_menuItem').click(function(){
		clearTimeout(a);
	})
    </script> -->
</head>
 
<body style="background-color:#F3F3F4">
 <div class="jumpdiv">
 <div style="width:500px;height:187px;text-align:center;margin:0 auto;">
      <h1 class="logo-name">MI</h1>
  </div>
<div class="logindiv1">此操作需要有管理员秘钥来执行</div>
<div class="logindiv1">
<!-- <span id="myspan">5</span>秒后自动跳转到登录页面 -->
<div class="logindiv1">
<form id="form" role="form" <%-- action="${basePath}SysdbaAction" --%>>
	<table border="" cellspacing="0" cellpadding="5px" style="margin: 0 auto;">
				<tr><td colspan="1">您的密码： </td><td><input style="height: 40px;width:260px" type="password" name="dbapsw" id="dbapsw" value="" /></td></tr>
				<tr><td colspan="2" style="text-align: center;"><button id="onclick" style="width:200px" type="button" onclick="doEnsurePsw()">确认</button></td></tr>
				
			</table>
</form>
</div>
</div>
 </div>
 <script type="text/javascript" src="static/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript"
		src="static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
	<script type="text/javascript"
	src="static/paginationjs-master-2.1.0/dist/pagination.min.js"></script>
 <script type="text/javascript">
 

 
  function doEnsurePsw(){
 $.ajax({
    type:"POST",
    url: "SysdbaAction",
    async:false,//同步：意思是当有返回值以后才会进行后面的js程序。
    data: $("#form").serialize(),
    dataType : "json",
    success:function(result){
      /*  if(result!=null){  *///根据返回值进行跳转
            window.location.href = '${basePath}CommAction?p=WEB-INF/logined/adminManage/ManagerRegisterUpload';
       /* } */
       
      /*  else{
    	   alert("密码错误！" + result);
       } */
       },
   		 error : function(result) {
		alert("密码错误！");
	   } 
	});
}
 
 /* $('#onclick').keydown(function(event){
	    if(event.keyCode == 13){
	        //模拟点击登陆按钮，触发上面的 Click 事件
	        $("#onclick").click;
	    }
	}); */
	</script>
</body>
 
</html>
